// #ifndef VUE3
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
import store from './store/index.js'
import request from './components/Requset.js'
import sort from '@/uni_modules/zwx-sort/components/zwx-sort/zwx-sort'
import uView from '@/uni_modules/uview-ui'

// 挂载获取系统相信息
import systemInfo from '@/utils/sytemInfo.js'
Vue.prototype.$SystemInfo = systemInfo

// 挂载公共弹窗提示
import toast from '@/utils/toast.js'
// 引入工具函数
import tools from '@/utils/tools.js'

Vue.prototype.$TestUrl = 'http://api.test.zytsaas.com/'//测试api  
Vue.prototype.$ApiUrl = 'https://api.zytsaas.com/' //正式api
Vue.prototype.$LocalUrl = 'http://192.168.1.19:5000/' //本地测试api
Vue.prototype.$Msg = toast
Vue.prototype.$Tools = tools
Vue.use(uView)
Vue.component("sort", sort)
Vue.prototype.$http = request
App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
